package view;

import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;

public class Main extends JFrame{
	
	public Main(){
		super("Beispiel MVC");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		JPanel createView = new CreateView();
		JPanel listView = new ListView();
		JPanel lastView = new LastView();
		
		add(createView, BorderLayout.SOUTH);
		add(listView, BorderLayout.CENTER);
		add(lastView, BorderLayout.NORTH);
		
		pack();
	}
	
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			
			@Override
			public void run() {
				new Main().setVisible(true);	
			}
		});
	}

}
